# Dockerfile for k8s_proxy_server_example.py
FROM python:3.10-slim

# 设置工作目录
WORKDIR /app

COPY scripts/proxy/requirements.txt .

# 安装 Python 依赖
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

# 复制应用代码
# RUN apt-get update && apt-get install -y wget && \
#     wget https://raw.gitcode.com/shichangzhang064/vllm-ascend/raw/v0.10.0rc1-dev-tmp/examples/disaggregated_prefill_v1/k8s_proxy_server_example.py && \
#     apt-get remove -y wget && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
COPY scripts/proxy/k8s_proxy_server_example.py .

# 暴露端口（默认 8000）
EXPOSE 8000

# 启动命令（可以通过环境变量或命令行参数覆盖）
ENTRYPOINT ["python", "k8s_proxy_server_example.py"]

# 默认参数（可以在运行时覆盖）
CMD ["--host", "0.0.0.0", "--port", "8000"]

